﻿using System.Collections.Generic;
using Dapper.Contrib.Extensions;

namespace pinduoduo.Model
{
    [Table("pdd_good")]
    public class PddGood
    {
        [ExplicitKey]
        public string good_id { get; set; }

        public string atvid { get; set; }

        public string gID1 { get; set; }

        public string gID2 { get; set; }

        public string shop_id { get; set; }

        public string sku { get; set; }

        //0 通过页面爬取来的
        public int type { get; set; }

        public string SourceKeywords { get; set; }

        public int firstLadderStartValue { get; set; }

        public string duo_duo_pid { get; set; }

        public string cps_sign { get; set; }
        public string coupon_list { get; set; }

        public string mkt_domain { get; set; }
        public string mkt_tr_sc { get; set; }
        public string mkt_tr_token { get; set; }
        public string biz_sn { get; set; }
        public string mall_id { get; set; }

        public string live_show_id { get; set; }

        public string  refer_page_name { get; set; }
        public string  refer_page_id  { get; set; }
        public string  refer_page_sn  { get; set; }

        public string merchantBatchSn { get; set; }
        public string merchantCouponId { get; set; }
    }



    public class SpecsItem
    {
        /// <summary>
        /// 颜色分类
        /// </summary>
        public string spec_key { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double spec_key_id { get; set; }
        /// <summary>
        /// 581款【纯棉套装】 送腰带
        /// </summary>
        public string spec_value { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double spec_value_id { get; set; }
    }

    public class PddPageGood
    {
        /// <summary>
        /// 
        /// </summary>
        public string attribute { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double defaultQuantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double endTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double goodsId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string groupPrice { get; set; }
        /// <summary>
        /// 券后¥43.5
        /// </summary>
        public string groupTip { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double groupTipType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double initQuantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double isOnsale { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double limitQuantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double marketPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string normalPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string normalSavePrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int oldGroupPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int previewPriority { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int quantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string skuExpansionPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double skuID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double skuId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double soldQuantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string spec { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<SpecsItem> specs { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double startTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int staticLimitQuantity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string thumbUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int weight { get; set; }
    }

}
